package cn.jdy.plugins.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.hibernate.annotations.GenericGenerator;

import cn.jdy.common.bo.BaseEntry;

/**
 * @desc   商家优惠券
 * @author ningqian
 * @date 2016-12-16
 */
@Entity
public class Coupon extends BaseEntry implements Serializable {

	private static final long serialVersionUID = 1L;
	  @Id
	  @GeneratedValue(strategy = GenerationType.AUTO)             //根据数据库自动适配 mysql默认自增
	  private Integer id;
	private double price; //优惠券金额
	private String status; //状态0-无效；1-有效 （则不能修改）
	private String name; //券名字
	//优惠券使用规则
	private String startDate; //开始使用日期
	private String endDate;   //结束使用日期
	private double usePrice;  //满足指定金额使用
	private Long total;  //优惠券数量
	private String description;  //描述
	
	private String typemi; //卡券类型0满减；1返现  

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public double getUsePrice() {
		return usePrice;
	}

	public void setUsePrice(double usePrice) {
		this.usePrice = usePrice;
	}

	public Long getTotal() {
		return total;
	}

	public void setTotal(Long total) {
		this.total = total;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getTypemi() {
		return typemi;
	}

	public void setTypemi(String typemi) {
		this.typemi = typemi;
	}


	
}
